"use strict";

var Q = require('q'),
    mu = require("mustache");

function MustacheService() {
    console.log("MustacheService constructor");
    mu.root = __dirname;
}

MustacheService.prototype.render = function (template, js) {
    return Q.fcall(function () {
        return mu.render(template, js);
    })
};

exports = module.exports = new MustacheService();